import request from '@/utils/request'

export function getMyNote() {
  return request({
    url: '/note/mine',
    method: 'get'
  })
}

export function addNote(data) {
  return request({
    url: '/note',
    method: 'post',
    data
  })
}

export function modifyNote(id, data) {
  return request({
    url: `/note/${id}`,
    method: 'put',
    data
  })
}

export function removeNote(id) {
  return request({
    url: `/note/${id}`,
    method: 'delete'
  })
}
